package com.kalvin.kvf.modules.ks.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.kalvin.kvf.common.controller.BaseController;
import com.kalvin.kvf.common.dto.R;

import com.kalvin.kvf.modules.dy.entity.Task;
import com.kalvin.kvf.modules.hxy.entity.Account;
import com.kalvin.kvf.modules.hxy.entity.Port;
import com.kalvin.kvf.modules.hxy.mapper.AccountMapper;
import com.kalvin.kvf.modules.hxy.mapper.PortMapper;
import com.kalvin.kvf.modules.ks.entity.KSTask;
import com.kalvin.kvf.modules.ks.mapper.KSTaskMapper;
import com.kalvin.kvf.modules.ks.service.KSLoginUserService;
import com.kalvin.kvf.modules.ks.service.KSTaskService;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("ks/crawler")
public class KSCrawlerController extends BaseController {

    @Autowired
    private KSTaskMapper ksTaskMapper;
    @Autowired
    private PortMapper portMapper;
    @Autowired
    private KSLoginUserService ksLoginUserService;
    @Autowired
    private AccountMapper accountMapper;
    @Autowired
    private KSTaskService taskService;


    /**
     * 爬虫
     *
     * @return
     */
//    @PostMapping(value = "add")
//    public R crawler() throws Exception {
//        taskService.taskStart();
//
//        return R.ok();
//    }

}
